<template>
  <div class="width-card-template">
    <div class="top-image"><img :src="creditProData.imgUrl" alt=""></div>
    <div class="card-contain">
      <div v-if="creditProData.name">{{creditProData.name}}</div>
      <div>{{creditProData.desc}}</div>
      <div class="apply_btn" @click="goTo(creditProData.url)">立即申请</div>
    </div>
  </div>
</template>
<script>
  export default {
    props: {
      creditProData: {
        type: Object,
        default(){
          return {}
        }
      }
    },
    methods: {
      goTo(u) {
        window.location.href = u
      }
    }
  }
</script>
<style scoped lang="less">

@import "../common/less/variable.less";

  .top-image {
    height: 110px;
    width: 200px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .card-contain {
    text-align: center;
  }
  .apply_btn {
    width: 100px;
    height: 30px;
    background: @blue;
    border-radius: 3px;
    text-align: center;
    line-height: 30px;
    color: #ffffff;
    margin: 0 auto;
    cursor: pointer;
  }
</style>